package com.woniuxy.service.impl;

import com.woniuxy.dao.CategoryDao;
import com.woniuxy.dao.GoodsDao;
import com.woniuxy.pojo.Category;
import com.woniuxy.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author 罗蔚
 * @Date 2022/3/28 0:42
 * @Description TODO
 */
@Service
public class CategoryServiceImpl implements CategoryService {
    @Autowired
    private CategoryDao categoryDao;

    @Override
    public List<Category> findAll() {
        return categoryDao.findAll();
    }

    @Override
    public String findCategoryName(int cid) {
        return categoryDao.findCategoryName(cid);
    }
}
